package com.bwda.dsrs.base.centerbase.response;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author yangjun
 * @date 2019/3/18
 */
public class CentreCutPageResponse<T> extends CentreListResponse<T> {
    private static final long serialVersionUID = 5888709607809204814L;
    @ApiModelProperty("当前页码，第一页为0")
    private int pageNum;
    @ApiModelProperty("每页条数")
    private int pageSize;
    @ApiModelProperty("总条数")
    private long totalCount;

    public CentreCutPageResponse(int pageNum, int pageSize, long totalCount, List<T> dataList) {
        super(dataList);
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
    }

    public int getPageNum() {
        return this.pageNum;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public long getTotalCount() {
        return this.totalCount;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }



    @Override
    public String toString() {
        return "CentreCutPageResponse(pageNum=" + this.getPageNum() + ", pageSize=" + this.getPageSize() + ", totalCount=" + this.getTotalCount() + ")";
    }

    public CentreCutPageResponse() {
    }
}
